/*
 * @Description:
 * @version:
 * @Author: 潘骏杰
 * @Date: 2021-11-22 16:23:06
 * @LastEditors: 潘骏杰
 * @LastEditTime: 2021-12-23 10:04:53
 */

import request from '@/utils/request'
import qs from 'qs'
// import CryptoJS from '@/utils/CryptoJS'

export function get(data) {
  return request({
    url: '',
    method: 'get',
    params: data
  })
}

export function post(data) {
  return request({
    url: '',
    method: 'post',
    data: qs.stringify(data)
  })
}

// 更新用户信息
export function UpdatePerson(params) {
  return request({
    url: '/ap/user/info/update',
    method: 'post',
    data: params
  })
}

// 添加-编辑就诊人
export function postsaveOrUpdatePeople(params) {
  return request({
    url: '/api/contacts/saveOrUpdate',
    method: 'post',
    data: params
  })
}

// 获取就诊人列表
export function postPeopleList(params) {
  return request({
    url: '/api/contacts/list',
    method: 'post',
    data: params
  })
}

// 根据id获取就诊人
export function postSelectById(params) {
  return request({
    url: '/api/contacts/selectById',
    method: 'post',
    data: params
  })
}

// 删除就诊人

export function deletePeople(params) {
  return request({
    url: '/api/contacts/delete',
    method: 'post',
    data: params
  })
}

// 发送短信验证码
export function postSendSmsCode(params) {
  return request({
    url: '/api/sms/sendSmsCode',
    method: 'post',
    data: params
  })
}

// 证短信码
export function postVerifycode(params) {
  return request({
    url: '/api/sms/verifycode',
    method: 'post',
    data: params
  })
}

// GetAppointmentById
export function postArchivesInfo(params) {
  return request({
    url: '/api/contacts/archivesInfo',
    method: 'post',
    data: params
  })
}
